package work.timejay.user.service.books;

import work.timejay.common.ApiPageEntity;
import work.timejay.user.dto.books.BookTypePageDTO;
import work.timejay.user.entity.books.BookType;
import work.timejay.common.SuperService;
import work.timejay.user.vo.books.BookTypePageVO;

/**
 * <p>
 * book类型表 服务类
 * </p>
 *
 * @author 王文杰
 * @since 2023-11-23
 */
public interface BookTypeService extends SuperService<BookType> {

    /**
     * 类目分页
     * @param dto
     * @return
     */
    ApiPageEntity<BookTypePageVO> bookPage(BookTypePageDTO dto);

    /**
     * 根据type获取书本类型
     * @param type
     * @return
     */
    BookType findBookTypeByType(Long type);
}
